package io.github.l86400.component.selenium.core.web.driver.chrome;

import io.github.l86400.component.selenium.core.web.driver.WebDriver;

/**
 * @author 86400
 * @since 2021/12/20 10:51
 */
public class ChromeDriver extends org.openqa.selenium.chrome.ChromeDriver implements WebDriver {

    public static ChromeDriver createChromeDriver() {
        return new ChromeDriver(new ChromeOptions());
    }

    public static ChromeDriver createChromeDriver(ChromeOptions chromeOptions) {
        return new ChromeDriver(chromeOptions);
    }

    private ChromeDriver(ChromeOptions options) {
        super(options.toChromeOptions());
    }
}
